package com.zrf.testchatgpt.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author zrf
 * @since 2023-03-15
 */
public class Config implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "config_id", type = IdType.AUTO)
      private Integer configId;

    private String configName;

    private String configKey;

    private String configValue;
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;


    public Integer getConfigId() {
        return configId;
    }

      public void setConfigId(Integer configId) {
          this.configId = configId;
      }

    public String getConfigName() {
        return configName;
    }

      public void setConfigName(String configName) {
          this.configName = configName;
      }

    public String getConfigKey() {
        return configKey;
    }

      public void setConfigKey(String configKey) {
          this.configKey = configKey;
      }

    public String getConfigValue() {
        return configValue;
    }

      public void setConfigValue(String configValue) {
          this.configValue = configValue;
      }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

      public void setCreateTime(LocalDateTime createTime) {
          this.createTime = createTime;
      }

    @Override
    public String toString() {
        return "Config{" +
              "configId=" + configId +
                  ", configName=" + configName +
                  ", configKey=" + configKey +
                  ", configValue=" + configValue +
                  ", createTime=" + createTime +
              "}";
    }
}
